# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-mopidy-mpd
_pyname=Mopidy-MPD
pkgver=3.0.0
pkgrel=0
pkgdesc="Mopidy extension for controlling playback from MPD clients"
url="https://github.com/mopidy/mopidy-mpd"
arch="noarch"
license="Apache-2.0"
depends="python3 mopidy py3-pykka"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c7b1c2b30f0d052b9cdcfc1f33a1ee2bb50302538087eee3f6bd5aa79711afd58986dd5d9ce901754b78fd2e78f6d5c353444ef6307408870d5930037d6d2b36  Mopidy-MPD-3.0.0.tar.gz"
